import { doc } from "@/router/enums";
import hot from "@/assets/svg/hot.svg?component";
const IFrame = () => import("@/views/list/card/index.vue");
const queryDetail = () => import("@/views/list/card/query-detail.vue");

export default {
  path: "/pure-admin-doc",
  redirect: "/pure-admin-doc/index",
  meta: {
    icon: hot,
    title: "楼层监控",
    rank: doc
  },
  children: [
    {
      path: "/pure-admin-doc/index",
      name: "楼层监控",
      component: IFrame,
      meta: {
        title: "楼层监控",
        frameSrc: "https://yiming_chang.gitee.io/pure-admin-doc/"
      }
    },
       {
      path: "/pure-admin-doc/query-detail",
         name: "TabQueryDetail",
      component:queryDetail,
      meta: {
        // 不在menu菜单中显示
        showLink: false,
        activePath: "/pure-admin-doc/index",
        roles: ["admin", "common"]
      }
    },
    // params 传参模式
    {
      path: "/pure-admin-doc/params-detail/:id",
      component:queryDetail,
      name: "TabParamsDetail",
      meta: {
        // 不在menu菜单中显示
        showLink: false,
        activePath: "/pure-admin-doc/index",
        roles: ["admin", "common"]
      }
    }
  ]
} as RouteConfigsTable;
